package com.lebang.example;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

public class CencesMasterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public CencesMasterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(LocalDate value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(LocalDate value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(LocalDate value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(LocalDate value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(LocalDate value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(LocalDate value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<LocalDate> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<LocalDate> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(LocalDate value1, LocalDate value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(LocalDate value1, LocalDate value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("`time` is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("`time` is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Integer value) {
            addCriterion("`time` =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Integer value) {
            addCriterion("`time` <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Integer value) {
            addCriterion("`time` >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("`time` >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Integer value) {
            addCriterion("`time` <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Integer value) {
            addCriterion("`time` <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Integer> values) {
            addCriterion("`time` in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Integer> values) {
            addCriterion("`time` not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Integer value1, Integer value2) {
            addCriterion("`time` between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("`time` not between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountIsNull() {
            addCriterion("apprentice_count is null");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountIsNotNull() {
            addCriterion("apprentice_count is not null");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountEqualTo(Integer value) {
            addCriterion("apprentice_count =", value, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountNotEqualTo(Integer value) {
            addCriterion("apprentice_count <>", value, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountGreaterThan(Integer value) {
            addCriterion("apprentice_count >", value, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("apprentice_count >=", value, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountLessThan(Integer value) {
            addCriterion("apprentice_count <", value, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountLessThanOrEqualTo(Integer value) {
            addCriterion("apprentice_count <=", value, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountIn(List<Integer> values) {
            addCriterion("apprentice_count in", values, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountNotIn(List<Integer> values) {
            addCriterion("apprentice_count not in", values, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountBetween(Integer value1, Integer value2) {
            addCriterion("apprentice_count between", value1, value2, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andApprenticeCountNotBetween(Integer value1, Integer value2) {
            addCriterion("apprentice_count not between", value1, value2, "apprenticeCount");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyIsNull() {
            addCriterion("rebate_apprentice_money is null");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyIsNotNull() {
            addCriterion("rebate_apprentice_money is not null");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyEqualTo(Integer value) {
            addCriterion("rebate_apprentice_money =", value, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyNotEqualTo(Integer value) {
            addCriterion("rebate_apprentice_money <>", value, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyGreaterThan(Integer value) {
            addCriterion("rebate_apprentice_money >", value, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("rebate_apprentice_money >=", value, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyLessThan(Integer value) {
            addCriterion("rebate_apprentice_money <", value, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("rebate_apprentice_money <=", value, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyIn(List<Integer> values) {
            addCriterion("rebate_apprentice_money in", values, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyNotIn(List<Integer> values) {
            addCriterion("rebate_apprentice_money not in", values, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyBetween(Integer value1, Integer value2) {
            addCriterion("rebate_apprentice_money between", value1, value2, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andRebateApprenticeMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("rebate_apprentice_money not between", value1, value2, "rebateApprenticeMoney");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountIsNull() {
            addCriterion("disciple_count is null");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountIsNotNull() {
            addCriterion("disciple_count is not null");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountEqualTo(Integer value) {
            addCriterion("disciple_count =", value, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountNotEqualTo(Integer value) {
            addCriterion("disciple_count <>", value, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountGreaterThan(Integer value) {
            addCriterion("disciple_count >", value, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("disciple_count >=", value, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountLessThan(Integer value) {
            addCriterion("disciple_count <", value, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountLessThanOrEqualTo(Integer value) {
            addCriterion("disciple_count <=", value, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountIn(List<Integer> values) {
            addCriterion("disciple_count in", values, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountNotIn(List<Integer> values) {
            addCriterion("disciple_count not in", values, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountBetween(Integer value1, Integer value2) {
            addCriterion("disciple_count between", value1, value2, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andDiscipleCountNotBetween(Integer value1, Integer value2) {
            addCriterion("disciple_count not between", value1, value2, "discipleCount");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyIsNull() {
            addCriterion("rebate_disciple_money is null");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyIsNotNull() {
            addCriterion("rebate_disciple_money is not null");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyEqualTo(Integer value) {
            addCriterion("rebate_disciple_money =", value, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyNotEqualTo(Integer value) {
            addCriterion("rebate_disciple_money <>", value, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyGreaterThan(Integer value) {
            addCriterion("rebate_disciple_money >", value, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("rebate_disciple_money >=", value, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyLessThan(Integer value) {
            addCriterion("rebate_disciple_money <", value, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("rebate_disciple_money <=", value, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyIn(List<Integer> values) {
            addCriterion("rebate_disciple_money in", values, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyNotIn(List<Integer> values) {
            addCriterion("rebate_disciple_money not in", values, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyBetween(Integer value1, Integer value2) {
            addCriterion("rebate_disciple_money between", value1, value2, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andRebateDiscipleMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("rebate_disciple_money not between", value1, value2, "rebateDiscipleMoney");
            return (Criteria) this;
        }

        public Criteria andBrandIsNull() {
            addCriterion("brand is null");
            return (Criteria) this;
        }

        public Criteria andBrandIsNotNull() {
            addCriterion("brand is not null");
            return (Criteria) this;
        }

        public Criteria andBrandEqualTo(String value) {
            addCriterion("brand =", value, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandNotEqualTo(String value) {
            addCriterion("brand <>", value, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandGreaterThan(String value) {
            addCriterion("brand >", value, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandGreaterThanOrEqualTo(String value) {
            addCriterion("brand >=", value, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandLessThan(String value) {
            addCriterion("brand <", value, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandLessThanOrEqualTo(String value) {
            addCriterion("brand <=", value, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandLike(String value) {
            addCriterion("brand like", value, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandNotLike(String value) {
            addCriterion("brand not like", value, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandIn(List<String> values) {
            addCriterion("brand in", values, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandNotIn(List<String> values) {
            addCriterion("brand not in", values, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandBetween(String value1, String value2) {
            addCriterion("brand between", value1, value2, "brand");
            return (Criteria) this;
        }

        public Criteria andBrandNotBetween(String value1, String value2) {
            addCriterion("brand not between", value1, value2, "brand");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("`type` is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("`type` is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("`type` =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("`type` <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("`type` >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("`type` >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("`type` <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("`type` <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("`type` in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("`type` not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("`type` between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("`type` not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNull() {
            addCriterion("category is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNotNull() {
            addCriterion("category is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryEqualTo(Integer value) {
            addCriterion("category =", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotEqualTo(Integer value) {
            addCriterion("category <>", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThan(Integer value) {
            addCriterion("category >", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThanOrEqualTo(Integer value) {
            addCriterion("category >=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThan(Integer value) {
            addCriterion("category <", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThanOrEqualTo(Integer value) {
            addCriterion("category <=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryIn(List<Integer> values) {
            addCriterion("category in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotIn(List<Integer> values) {
            addCriterion("category not in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryBetween(Integer value1, Integer value2) {
            addCriterion("category between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotBetween(Integer value1, Integer value2) {
            addCriterion("category not between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNull() {
            addCriterion("app_id is null");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNotNull() {
            addCriterion("app_id is not null");
            return (Criteria) this;
        }

        public Criteria andAppIdEqualTo(Integer value) {
            addCriterion("app_id =", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotEqualTo(Integer value) {
            addCriterion("app_id <>", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThan(Integer value) {
            addCriterion("app_id >", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("app_id >=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThan(Integer value) {
            addCriterion("app_id <", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThanOrEqualTo(Integer value) {
            addCriterion("app_id <=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdIn(List<Integer> values) {
            addCriterion("app_id in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotIn(List<Integer> values) {
            addCriterion("app_id not in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdBetween(Integer value1, Integer value2) {
            addCriterion("app_id between", value1, value2, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotBetween(Integer value1, Integer value2) {
            addCriterion("app_id not between", value1, value2, "appId");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}